package com.ld.common.model.system;

import java.io.Serializable;

import com.ld.shieldsb.annotation.model.ModelAnno.TableName;

@TableName("sys_config")
public class SystemConfigModel implements Serializable {
    private static final long serialVersionUID = -984342657853550697L;

    private Long id;
    private String name;
    private Integer state;
    private Long pid;
    private Long orders;
    private String value;

    public Long getId() {
        return this.id;
    }

    public String getName() {
        return this.name;
    }

    public Integer getState() {
        return this.state;
    }

    public Long getPid() {
        return this.pid;
    }

    public Long getOrders() {
        return this.orders;
    }

    public String getValue() {
        return this.value;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public void setOrders(Long orders) {
        this.orders = orders;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof SystemConfigModel)) {
            return false;
        } else {
            SystemConfigModel other = (SystemConfigModel) o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$id = this.getId();
                Object other$id = other.getId();
                if (this$id == null) {
                    if (other$id != null) {
                        return false;
                    }
                } else if (!this$id.equals(other$id)) {
                    return false;
                }

                Object this$name = this.getName();
                Object other$name = other.getName();
                if (this$name == null) {
                    if (other$name != null) {
                        return false;
                    }
                } else if (!this$name.equals(other$name)) {
                    return false;
                }

                Object this$state = this.getState();
                Object other$state = other.getState();
                if (this$state == null) {
                    if (other$state != null) {
                        return false;
                    }
                } else if (!this$state.equals(other$state)) {
                    return false;
                }

                label62: {
                    Object this$pid = this.getPid();
                    Object other$pid = other.getPid();
                    if (this$pid == null) {
                        if (other$pid == null) {
                            break label62;
                        }
                    } else if (this$pid.equals(other$pid)) {
                        break label62;
                    }

                    return false;
                }

                label55: {
                    Object this$orders = this.getOrders();
                    Object other$orders = other.getOrders();
                    if (this$orders == null) {
                        if (other$orders == null) {
                            break label55;
                        }
                    } else if (this$orders.equals(other$orders)) {
                        break label55;
                    }

                    return false;
                }

                Object this$value = this.getValue();
                Object other$value = other.getValue();
                if (this$value == null) {
                    if (other$value != null) {
                        return false;
                    }
                } else if (!this$value.equals(other$value)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof SystemConfigModel;
    }

    public int hashCode() {
        // int PRIME = true;
        int result = 1;
        Object $id = this.getId();
        result = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $name = this.getName();
        result = result * 59 + ($name == null ? 43 : $name.hashCode());
        Object $state = this.getState();
        result = result * 59 + ($state == null ? 43 : $state.hashCode());
        Object $pid = this.getPid();
        result = result * 59 + ($pid == null ? 43 : $pid.hashCode());
        Object $orders = this.getOrders();
        result = result * 59 + ($orders == null ? 43 : $orders.hashCode());
        Object $value = this.getValue();
        result = result * 59 + ($value == null ? 43 : $value.hashCode());
        return result;
    }

    public String toString() {
        return "SystemConfigModel(id=" + this.getId() + ", name=" + this.getName() + ", state=" + this.getState() + ", pid=" + this.getPid()
                + ", orders=" + this.getOrders() + ", value=" + this.getValue() + ")";
    }

    public SystemConfigModel() {
    }
}
